package com.xiaoxu.search;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = {"com.xiaoxu.search","com.xiaoxu.base"})
@Slf4j
public class SearchApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(SearchApplication.class, args);
        log.info("\n"+"\t\t\t\t******************************************"+"\n"+"\t\t\t\t**\t贝壳学堂- {} 模块项目启动成功" +
                        "\t**"+"\n\t\t\t\t**\t\t\t贝壳学堂-版本v1.0测试版\t\t**"+"\n\t\t\t\t**\t贝壳学堂-系统配置模块端口号: {}" +
                        "\t\t**"+"\n\t\t\t\t******************************************"
                ,ctx.getEnvironment().getProperty("spring.application.name")
                ,ctx.getEnvironment().getProperty("server.port"));    }

}
